package org.maggioni.springsandbox.rehearsals.e03internationalization.e01basic;

import java.util.Locale;

import org.maggioni.springsandbox.model.decorators.Showable;
import org.maggioni.springsandbox.model.draw.Point;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;

public class MyBean extends Showable {
	
	private Point point;
	@Autowired
	private MessageSource messageSource;

	@Override
	public String toString() {
		return messageSource.getMessage("tostringMsg", new String[]{point.toString()}, "", new Locale("IT"));
	}

	public Point getPoint() {
		return point;
	}

	public void setPoint(Point point) {
		this.point = point;
	}

	public MessageSource getMessageSource() {
		return messageSource;
	}

	public void setMessageSource(MessageSource messageSource) {
		this.messageSource = messageSource;
	}

	

}
